<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import ="service.*,java.util.*,bean.*" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
    
  </head>
<body>
<%
int id=Integer.parseInt(request.getParameter("id"));
Admin admin = new AdminService().querybyid(id);
%>
 <div class="container">
<form class="form-signin" action="do_update.jsp" method ="post">
<h2 class="form-signin-heading">修改信息</h2>
<label for="setUsername" class="sr-only">Username</label>

<input type="hidden" name="id" value="<%=admin.getId()%>">
<input type="text" name="username" class="form-control" value="<%=admin.getUsername() %>" >
<label for="inputPassword" class="sr-only">Password</label>
<input type="text" name="password" class="form-control" value="<%=admin.getPassword() %>" >

<input type="submit" value="更新">
</form>
</div>
</body>
</html>